package com.itzzj.common.enums;

import lombok.Getter;

/**
 * 响应枚举类，对应HTTP状态码
 */
@Getter
public enum ResultCode {

    SUCCESS(200,"成功"),
    BAD_REQUEST(400,"Bad Request"),
    NOT_FOUNT(404,"接口不存在"),
    INTERNAL_SERVER_ERROR(500,"系统繁忙")
    ;

    private Integer code;

    private String message;

    ResultCode(Integer code,String message){
        this.code = code;
        this.message = message;
    }
}





























